#include "SSUtil.h"
#include "TaskStep.h"

//
// Created by liang on 2025/4/20.
//
using namespace SS;
// 是否打开了商城
class MallTaskStep : public TaskStep{
public:
    MallTaskStep(){}
    bool isMatchingStep() override {
        auto picture_point = SS::SSUtil::getPicturePoint(this->sourcePicture, this->targetPicture);
        return picture_point.isMatching;
    }
    void retry() override {
        control.sendActionKey(hwnd,ActionKey::Keys::SHOPPING_MALL);
    }


private:
    QString targetPicture = QCoreApplication::applicationDirPath() + "/resources/mastergate/shopping_mall.png";
};                              